package com.example.demo.utils;

public class ValidateUtil {
    // 电子邮件正则
    public static final String emailPattern = "/^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$/";
    //手机号正则
    public static final String phoneNumberPattern = "/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$/";
    //邮政编码正则
    public static final String contactAddressPattern = "/^[1-9]\\d{5}$/";
    //身份证正则
    public static final String idCardNumberPattern = "/(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)/";
}
